/**
 * 
 */
package com.ffcs.crmd.tsp.server.jdbc.service;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import com.ffcs.crmd.tsp.common.exception.TspException;
import com.ffcs.crmd.tsp.common.exception.TspTransactionException;
import com.ffcs.crmd.tsp.server.jdbc.SqlConstants;
import com.ffcs.crmd.tsp.server.jdbc.entity.JobDetailParam;

/**
 * 功能说明:
 *
 * @author FFCS-ZHONGFUHUA
 * 
 * @since 
 *
 */
public interface IJobDetailParamService extends SqlConstants {

    /**
     * 功能说明:
     * 
     * @param conn
     * @param id
     * @return
     * @throws SQLException 
     */
    JobDetailParam get(Connection conn, JobDetailParam jobDetailParam) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param jobDetailParam
     * @return
     * @throws SQLException 
     */
    List<JobDetailParam> query(Connection conn, JobDetailParam jobDetailParam) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param jobDetailParam
     * @return
     * @throws SQLException 
     * @throws TspException 
     */
    List<JobDetailParam> queryPage(Connection conn, JobDetailParam jobDetailParam) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param jobDetailParam
     * @return
     * @throws TspTransactionException
     */
    boolean add(Connection conn, JobDetailParam jobDetailParam) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param jobDetailParam
     * @return
     * @throws TspException 
     */
    int querySize(Connection conn, JobDetailParam jobDetailParam) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param jobDetailParamList
     * @throws TspException
     */
    void add(Connection conn, List<JobDetailParam> jobDetailParamList) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param jobDetailParam
     * @return
     * @throws TspException
     */
    boolean delete(Connection conn, JobDetailParam jobDetailParam) throws TspException;

    /**
     * 功能说明:
     * 
     * @param conn
     * @param jobDetailParam
     * @return
     * @throws TspException
     */
    boolean update(Connection conn, JobDetailParam jobDetailParam) throws TspException;
    
    
}
